package com.blog4j.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 98k灬
 * @version v1.0.0
 * @Description : 功能描述
 * @Create on : 2024/8/15 12:09
 **/
@TableName("t_message")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class MessageEntity {
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 发送方用户ID
     */
    private String fromUserId;

    /**
     * 接收方用户ID
     */
    private String toUserId;

    /**
     * 消息类型
     */
    private Integer messageType;

    /**
     * 消息状态
     */
    private Integer messageStatus;

    /**
     * 消息标题
     */
    private String messageTitle;

    /**
     * 消息内容
     */
    private String messageContent;

    /**
     * 是否已被删除
     */
    @TableLogic
    private Integer deleted;

    /**
     * 创建时间
     */
    private String createTime;
}
